//
//  BConnector.h
//  car
//
//  Created by chenxu on 15/3/23.
//  Copyright (c) 2015年 chenxu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Order.h"
#import "PrivateMessage.h"
@interface BConnector : NSObject

typedef NS_ENUM(NSInteger, method) {
    query_bindlist = 0,

    fetch_msgs_single,
    fetch_msgs_all,
    query_app_ioscert,
} ;
typedef NS_ENUM(NSInteger, pushmethod) {
    push_msg_to_all = 0,
    push_msg_to_single,
} ;
typedef NS_ENUM(NSInteger, platform) {
    android = 0,
    ios,
} ;

+ (NSString* )toPath;
+ (NSString* )toPathWithChannelid;

+ (NSDictionary* )msg:(PrivateMessage*)primsg order:(Order*)order;

+ (NSDictionary* )toMsgParams:(pushmethod)method msg:(PrivateMessage*)msg order:(Order*)order;
+ (NSDictionary* )toParams:(method)method;

+ (void)setPlatform:(platform)platform;
@end
